export default [
    // 重定向 
    { path: '/', redirect: '/login' },
    { path: '/home', redirect: '/default' },
    {//登陆
        path: '/login',
        name: 'login',
        component: () => import('@/views/login.vue')
    }, {
        // 首页模块
        path: '/home',
        name: 'home',
        component: () => import('@/views/home.vue'),
        children: [
            {//用户列表模块
                path: '/users',
                name: 'users',
                component: () => import('@/views/users.vue'),
            },
            {//这个模块没啥用
                path: '/default',
                name: 'default',
                component: () => import('@/views/default.vue'),
            },
            {//这个是权限列表
                path: '/rights',
                name: 'rights',
                component: () => import('@/views/rights.vue'),
            }
            , {//这个是角色列表
                path: '/roles',
                name: 'roles',
                component: () => import('@/views/roles.vue'),
            },
            { path: '/categories', name: 'categories', component: () => import('@/views/categories.vue') }//这个是商品分类模块
        ]
    }
]